package com.yzl.builder;

import java.util.concurrent.CompletableFuture;

/**
 * @program: design-pattern
 * @description: 具体的建造者，实现builder来创建不同的产品
 * @author: YaoZhiLi
 * @create: 2021-08-07 23:55
 */
public class LowComputerBuilder implements Builder {
    private Computer computer = new Computer();

    @Override
    public void buildCpu() {
        computer.setCpu("低配Cpu");
    }

    @Override
    public void buildMainBoard() {
        computer.setMainBoard("低配主板");
    }

    @Override
    public void buildDisk() {
        computer.setDisk("低配磁盘");
    }

    @Override
    public void buildPower() {
        computer.setPower("低配电源");
    }

    @Override
    public void buildMemory() {
        computer.setMemory("低配内存");
    }

    @Override
    public Computer createComputer() {
        return computer;
    }
}